<?php
/**
 * 3-4岁拼图游戏内容
 */

if (!defined('ROOT_PATH')) {
    die('直接访问被禁止');
}

// 设置页面标题
set_page_title('3-4岁简易拼图');

// 页面特定样式
$page_styles = <<<HTML
<style>
    /* 3-4岁拼图游戏特定样式 */
    body {
        background-color: #f3e5f5;
        font-family: 'Comic Sans MS', 'Marker Felt', 'Arial Rounded MT Bold', sans-serif;
    }
    
    .navbar {
        background: linear-gradient(to right, #ba68c8, #ce93d8);
        border-radius: 0 0 20px 20px;
    }
    
    .puzzle-header {
        text-align: center;
        padding: 40px 0;
        margin-bottom: 30px;
        background-color: #fff;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border: 6px solid #e1bee7;
    }
    
    .puzzle-title {
        font-size: 2.5rem;
        font-weight: bold;
        color: #9c27b0;
        margin-bottom: 15px;
    }
    
    .puzzle-subtitle {
        font-size: 1.2rem;
        color: #666;
        max-width: 800px;
        margin: 0 auto 20px;
    }
    
    .puzzle-container {
        background-color: white;
        border-radius: 15px;
        padding: 30px;
        margin-bottom: 40px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .puzzle-difficulty {
        margin-bottom: 30px;
    }
    
    .difficulty-title {
        font-size: 1.8rem;
        color: #9c27b0;
        text-align: center;
        margin-bottom: 20px;
        font-weight: bold;
    }
    
    .puzzle-card {
        border: 3px solid #e1bee7;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
        margin-bottom: 30px;
        transition: transform 0.3s ease;
    }
    
    .puzzle-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    }
    
    .puzzle-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
    
    .puzzle-info {
        padding: 20px;
        text-align: center;
        background-color: #fcf7ff;
    }
    
    .puzzle-name {
        font-size: 1.5rem;
        font-weight: bold;
        color: #9c27b0;
        margin-bottom: 10px;
    }
    
    .puzzle-description {
        color: #666;
        margin-bottom: 15px;
    }
    
    .puzzle-pieces {
        color: #9c27b0;
        font-weight: bold;
        margin-bottom: 15px;
    }
    
    .btn-puzzle {
        background-color: #9c27b0;
        color: white;
        padding: 10px 25px;
        border-radius: 50px;
        font-weight: bold;
        transition: all 0.3s ease;
    }
    
    .btn-puzzle:hover {
        background-color: #7b1fa2;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        color: white;
    }
    
    .back-button {
        background-color: #9c27b0;
        color: white;
        padding: 10px 25px;
        border-radius: 50px;
        font-weight: bold;
        margin-bottom: 30px;
        display: inline-block;
        transition: all 0.3s ease;
    }
    
    .back-button:hover {
        background-color: #7b1fa2;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        color: white;
    }
    
    .benefits-section {
        background-color: white;
        border-radius: 15px;
        padding: 30px;
        margin-bottom: 40px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .benefits-title {
        font-size: 1.8rem;
        color: #9c27b0;
        text-align: center;
        margin-bottom: 25px;
        font-weight: bold;
    }
    
    .benefit-item {
        margin-bottom: 15px;
        padding: 15px;
        background-color: #f8f0fc;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .benefit-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    }
    
    .benefit-icon {
        font-size: 2rem;
        margin-bottom: 15px;
        color: #9c27b0;
    }
    
    .benefit-title {
        font-size: 1.3rem;
        font-weight: bold;
        margin-bottom: 10px;
        color: #9c27b0;
    }
    
    .benefit-text {
        color: #666;
    }
</style>
HTML;
?>

<!-- 主内容区 -->
<div class="container mt-4">
    <!-- 返回按钮 -->
    <a href="<?php echo page_url('age-3-4-training'); ?>" class="back-button mb-4">
        <i class="fas fa-arrow-left mr-2"></i> 返回思维训练
    </a>
    
    <!-- 拼图标题 -->
    <div class="puzzle-header">
        <h1 class="puzzle-title">简易拼图</h1>
        <p class="puzzle-subtitle">通过有趣的拼图游戏，锻炼孩子的观察力、空间想象力和手眼协调能力。</p>
        <img src="<?php echo asset_url('images/puzzle-banner.jpg'); ?>" alt="拼图游戏" class="img-fluid rounded" style="max-height: 300px;">
    </div>
    
    <!-- 拼图游戏 -->
    <div class="puzzle-container">
        <!-- 简单拼图 -->
        <div class="puzzle-difficulty">
            <h2 class="difficulty-title">简单拼图（4-6片）</h2>
            
            <div class="row">
                <!-- 动物拼图 -->
                <div class="col-md-4">
                    <div class="puzzle-card">
                        <img src="<?php echo asset_url('images/animal-puzzle.jpg'); ?>" alt="动物拼图" class="puzzle-image">
                        <div class="puzzle-info">
                            <h3 class="puzzle-name">可爱动物</h3>
                            <p class="puzzle-description">简单的动物形象拼图，适合初次接触拼图的孩子。</p>
                            <p class="puzzle-pieces">4片拼图</p>
                            <a href="<?php echo page_url('puzzle-animal-easy'); ?>" class="btn btn-puzzle">开始游戏</a>
                        </div>
                    </div>
                </div>
                
                <!-- 水果拼图 -->
                <div class="col-md-4">
                    <div class="puzzle-card">
                        <img src="<?php echo asset_url('images/fruit-puzzle.jpg'); ?>" alt="水果拼图" class="puzzle-image">
                        <div class="puzzle-info">
                            <h3 class="puzzle-name">美味水果</h3>
                            <p class="puzzle-description">鲜艳的水果拼图，帮助孩子认识不同的水果。</p>
                            <p class="puzzle-pieces">4片拼图</p>
                            <a href="<?php echo page_url('puzzle-fruit-easy'); ?>" class="btn btn-puzzle">开始游戏</a>
                        </div>
                    </div>
                </div>
                
                <!-- 交通工具拼图 -->
                <div class="col-md-4">
                    <div class="puzzle-card">
                        <img src="<?php echo asset_url('images/vehicle-puzzle.jpg'); ?>" alt="交通工具拼图" class="puzzle-image">
                        <div class="puzzle-info">
                            <h3 class="puzzle-name">交通工具</h3>
                            <p class="puzzle-description">各种交通工具拼图，培养孩子对车辆的兴趣。</p>
                            <p class="puzzle-pieces">6片拼图</p>
                            <a href="<?php echo page_url('puzzle-vehicle-easy'); ?>" class="btn btn-puzzle">开始游戏</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 中等拼图 -->
        <div class="puzzle-difficulty">
            <h2 class="difficulty-title">进阶拼图（9片）</h2>
            
            <div class="row">
                <!-- 童话场景 -->
                <div class="col-md-4">
                    <div class="puzzle-card">
                        <img src="<?php echo asset_url('images/fairytale-puzzle.jpg'); ?>" alt="童话场景拼图" class="puzzle-image">
                        <div class="puzzle-info">
                            <h3 class="puzzle-name">童话场景</h3>
                            <p class="puzzle-description">美丽的童话世界拼图，激发孩子的想象力。</p>
                            <p class="puzzle-pieces">9片拼图</p>
                            <a href="<?php echo page_url('puzzle-fairytale'); ?>" class="btn btn-puzzle">开始游戏</a>
                        </div>
                    </div>
                </div>
                
                <!-- 海洋世界 -->
                <div class="col-md-4">
                    <div class="puzzle-card">
                        <img src="<?php echo asset_url('images/ocean-puzzle.jpg'); ?>" alt="海洋世界拼图" class="puzzle-image">
                        <div class="puzzle-info">
                            <h3 class="puzzle-name">海洋世界</h3>
                            <p class="puzzle-description">色彩斑斓的海洋生物拼图，了解海底世界。</p>
                            <p class="puzzle-pieces">9片拼图</p>
                            <a href="<?php echo page_url('puzzle-ocean'); ?>" class="btn btn-puzzle">开始游戏</a>
                        </div>
                    </div>
                </div>
                
                <!-- 四季风景 -->
                <div class="col-md-4">
                    <div class="puzzle-card">
                        <img src="<?php echo asset_url('images/seasons-puzzle.jpg'); ?>" alt="四季风景拼图" class="puzzle-image">
                        <div class="puzzle-info">
                            <h3 class="puzzle-name">四季风景</h3>
                            <p class="puzzle-description">展示春夏秋冬不同景色的拼图，认识自然变化。</p>
                            <p class="puzzle-pieces">9片拼图</p>
                            <a href="<?php echo page_url('puzzle-seasons'); ?>" class="btn btn-puzzle">开始游戏</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 拼图益处 -->
    <div class="benefits-section">
        <h2 class="benefits-title">拼图游戏的益处</h2>
        
        <div class="row">
            <div class="col-md-4 mb-4">
                <div class="benefit-item text-center">
                    <div class="benefit-icon">👁️</div>
                    <h3 class="benefit-title">观察力</h3>
                    <p class="benefit-text">通过识别拼图碎片的形状和图案，提高孩子的观察能力。</p>
                </div>
            </div>
            
            <div class="col-md-4 mb-4">
                <div class="benefit-item text-center">
                    <div class="benefit-icon">🧩</div>
                    <h3 class="benefit-title">空间想象力</h3>
                    <p class="benefit-text">拼图需要孩子想象碎片如何组合在一起，培养空间思维。</p>
                </div>
            </div>
            
            <div class="col-md-4 mb-4">
                <div class="benefit-item text-center">
                    <div class="benefit-icon">🤔</div>
                    <h3 class="benefit-title">问题解决能力</h3>
                    <p class="benefit-text">当拼图碎片无法立即拼合时，锻炼孩子的耐心和解决问题的能力。</p>
                </div>
            </div>
            
            <div class="col-md-4 mb-4">
                <div class="benefit-item text-center">
                    <div class="benefit-icon">🖐️</div>
                    <h3 class="benefit-title">精细动作</h3>
                    <p class="benefit-text">操作拼图碎片需要手指的灵活性，有助于提高精细动作能力。</p>
                </div>
            </div>
            
            <div class="col-md-4 mb-4">
                <div class="benefit-item text-center">
                    <div class="benefit-icon">🧠</div>
                    <h3 class="benefit-title">认知发展</h3>
                    <p class="benefit-text">拼图帮助孩子理解部分与整体的关系，促进认知发展。</p>
                </div>
            </div>
            
            <div class="col-md-4 mb-4">
                <div class="benefit-item text-center">
                    <div class="benefit-icon">✨</div>
                    <h3 class="benefit-title">成就感</h3>
                    <p class="benefit-text">完成拼图给孩子带来成就感，增强自信心和持续学习的动力。</p>
                </div>
            </div>
        </div>
    </div>
</div> 